<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@include file="header.jsp" %>
	
<img src="<%=request.getContextPath()+"/resources/images/login_logo.jpg"%>" class="logo">

<div class="form-wrapper login-form-wrapper"> 
	<div class="form-header">
		<div class="form-title">
			<fmt:message key="label.login.title"></fmt:message>
		</div>
	</div>
	<div class="form-body">
		<form method="post" action="../j_spring_security_check">
			<label for="loginFieldId1" class="form-label login-form-field-label">
				<fmt:message key="label.login"></fmt:message>:
			</label> 
			<input type="text" name="j_username" id="loginFieldId" class="form-field" size="15"/>
    		<label for="passwordFieldId" class="form-label login-form-field-label">
    			<fmt:message key="label.password"></fmt:message>:
    		</label> 
    		<input type="password" name="j_password" id="passwordFieldId" class="form-field" size="15"/>
    		<div class="form-button-wrapper1">
    			<input type="submit" id="loginButtonId" value=<fmt:message key="button.login"></fmt:message> class="form-button form-button-login" />
    			<input type="reset" id="clearButtonId" value=<fmt:message key="button.clear"></fmt:message> class="form-button" />
    		</div>
    		<div class="form-button-wrapper2">
    			<input type="checkbox" name="_spring_security_remember_me" id="rememberFieldId" class="checkbox"/>
    			<label for="rememberFieldId" class="label-check-select">
    				<fmt:message key="label.rememberme"></fmt:message> 
    			</label>
    		</div>
    		<a href="<%=request.getContextPath()+"/public/registration/init.action"%>" 
    				class="form-button form-button-registration">
    				<fmt:message key="button.register"></fmt:message>
    		</a>
         </form>
	</div>
	<div class="form-footer">
	</div>
</div>

<c:if test="${not empty param.error}">
	<div class="form-wrapper login-form-error-wrapper">
		<div class="form-header">
			<div class="form-title form-error-title">
				<fmt:message key="label.error"></fmt:message>
			</div>
		</div>
		<p class="form-error-text form-error-text-center">
			<fmt:message key="label.auth.error.start"></fmt:message> 
			<br/>
			<fmt:message key="label.auth.error.end"></fmt:message> 
		</p>
		<div class="form-footer"></div>
	</div>
</c:if>

<script type="text/javascript" src="<%=request.getContextPath()%>/resources/js/app/login.js"></script>
<%@include file="footer.jsp" %>	